﻿using System;

namespace ContainerVariations.Common
{
    public interface ITestActor
    {
        void Act(string text);
    }

    public class TestActor : ITestActor
    {
        private readonly Action<string> _action;

        public TestActor(Action<string> action)
        {
            _action = action;
        }

        public void Act(string text)
        {
            _action(text);
        }
    }
}